<?php include("header.php"); 
if(isset($_REQUEST['url'])){
	$sql2=mysql_query("SELECT * FROM `my_business_url` WHERE `url`='".$_REQUEST['url']."' ")or die(mysql_error());
	if(mysql_num_rows($sql2)){	
		$rows=mysql_fetch_array($sql2);
	}
}
?>
<style> 
body {background: url(images/body_bg.jpg) repeat-x top #fff;}
#main_container { width:750px  }
.header  { width:750px; height:52px; }
.welcome_name {
	width:auto;
 }

.welcome_main {
width: 334px;
height: 34px;
padding-top: 19px;
float: left;
}

.outbox { visibility:hidden; }
 
</style>
 
 
<script>
  $(window).load(function(){ 
$(".tabpanel  li:first a").click();
setTimeout(function(){$(".outbox").css( {visibility: "visible"  }) },1000)

 
})
  </script>

 
 <div class="detailhead"> 
   <div class="htext">Cras porta euismod metus, nec commodo ligula </div>
   <div class="hbook">
 
            <span class='st_facebook_hcount' displayText='Facebook'></span>
            <span class='st_twitter_hcount' displayText='Tweet'></span>
            <a href="#"  class="inputbtn">Bookmark</a>
            </div>
   </div>
   
   
   <ul class="tabpanel"> 
      <li><a href="#" class="activbe">Fanpage </a></li>         
      <li><a href="#">Photo gallery</a></li>      
       <li><a href="#">Artical </a></li>
   </ul> 
   
   <div class="outbox">    
    

     
     <div class="outboxin">
     	 <?php $url=get_allitem('my_url','url_id',$rows['id']); ?>
     	 <iframe id="myiframe" src="<?php echo $url['url']; ?>" height="<?php echo $url['height']; ?>" width="750" scrolling="no"></iframe>
     </div>
     <div class="outboxin"  > 
         <div id="gallery" class="ad-gallery">
      <div class="ad-image-wrapper">
      </div>
      <div class="ad-controls">
      </div>
      <div class="ad-nav">
        <div class="ad-thumbs">
          <ul class="ad-thumb-list">
             <?php 
		  	$sql=mysql_query("SELECT * FROM `my_images` WHERE `url_id`='".$rows['id']."' ")or die(mysql_error());
		  	while($row=mysql_fetch_array($sql)){
		  ?>
            <li>
              <a href="uploads/<?php echo $row['image']; ?>">
                <img src="uploads/thumb/t_<?php echo $row['image']; ?>" class="image0" width="96" height="66">
              </a>
            </li>
          <?php }?>
          </ul>
        </div>
      </div>
    </div>
	 </div>
     <div class="outboxin"  > 
     	 <?php $article=get_allitem('my_article','url_id',$rows['id']); ?>
         <div class="articleblog">
           <h1><?php echo $article['article_title']; ?> </h1>
           
           <div class="imgblog"> 
		   <?php if(!empty($article['fetured_image'])){?> 
           <img src="uploads/<?php echo $article['fetured_image']; ?>" style="max-height:295px; max-width:750px;" />
           <?php }?>
           </div>
           
           <p><?php echo $article['article_discription']; ?></p>
           
         </div>
     </div> 
     
     
     
     
   </div>
   
   
 
   
 
 
 
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "20e8710f-a038-47e3-9f63-a54860ba63e3"});</script>
</body>
</html>
